package com.lkd.utils;

import com.lkd.vo.TianxingDataVO;

public class TianxingApiUtil {

    public static String getData(String url){
        //1.天行API数据获取
        TianxingDataVO vo = RestTemplateUtil.getRestTemplate().
                getForObject(url
                , TianxingDataVO.class
        );
        if(vo != null && 200 == vo.getCode()){
            TianxingDataVO.ResultDTO result = vo.getResult();
            if(result != null){
                return result.getContent();
            }
        }

        return null;
    }
}
